package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.software.SoftwareCopyrightTeacher;
import com.ruoyi.system.mapper.project.SoftwareCopyrightTeacherMapper;
import com.ruoyi.system.service.project.ISoftwareCopyrightTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 软件著作权教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-28
 */
@Service
public class SoftwareCopyrightTeacherServiceImpl implements ISoftwareCopyrightTeacherService
{
    @Autowired
    private SoftwareCopyrightTeacherMapper softwareCopyrightTeacherMapper;

    /**
     * 查询软件著作权教师
     * 
     * @param id 软件著作权教师主键
     * @return 软件著作权教师
     */
    @Override
    public SoftwareCopyrightTeacher selectSoftwareCopyrightTeacherById(Long id)
    {
        return softwareCopyrightTeacherMapper.selectSoftwareCopyrightTeacherById(id);
    }

    /**
     * 查询软件著作权教师列表
     * 
     * @param softwareCopyrightTeacher 软件著作权教师
     * @return 软件著作权教师
     */
    @Override
    public List<SoftwareCopyrightTeacher> selectSoftwareCopyrightTeacherList(SoftwareCopyrightTeacher softwareCopyrightTeacher)
    {
        return softwareCopyrightTeacherMapper.selectSoftwareCopyrightTeacherList(softwareCopyrightTeacher);
    }

    /**
     * 新增软件著作权教师
     * 
     * @param softwareCopyrightTeacher 软件著作权教师
     * @return 结果
     */
    @Override
    public int insertSoftwareCopyrightTeacher(SoftwareCopyrightTeacher softwareCopyrightTeacher)
    {
        return softwareCopyrightTeacherMapper.insertSoftwareCopyrightTeacher(softwareCopyrightTeacher);
    }

    /**
     * 修改软件著作权教师
     * 
     * @param softwareCopyrightTeacher 软件著作权教师
     * @return 结果
     */
    @Override
    public int updateSoftwareCopyrightTeacher(SoftwareCopyrightTeacher softwareCopyrightTeacher)
    {
        return softwareCopyrightTeacherMapper.updateSoftwareCopyrightTeacher(softwareCopyrightTeacher);
    }

    /**
     * 批量删除软件著作权教师
     * 
     * @param ids 需要删除的软件著作权教师主键
     * @return 结果
     */
    @Override
    public int deleteSoftwareCopyrightTeacherByIds(Long[] ids)
    {
        return softwareCopyrightTeacherMapper.deleteSoftwareCopyrightTeacherByIds(ids);
    }

    /**
     * 删除软件著作权教师信息
     * 
     * @param id 软件著作权教师主键
     * @return 结果
     */
    @Override
    public int deleteSoftwareCopyrightTeacherById(Long id)
    {
        return softwareCopyrightTeacherMapper.deleteSoftwareCopyrightTeacherById(id);
    }
}
